class RenamePledgeClassesColumn < ActiveRecord::Migration
  def self.up
    change_column :pledge_classes, :semester, :int, :limit => 11
    rename_column :pledge_classes, :semester, :semester_index
  end

  def self.down
    rename_column :pledge_classes, :semester_index, :semester
    change_column :pledge_classes, :semester, :datetime
  end
end
